package com.george.common.api.feign.stock;

import com.george.common.api.feign.fallBack.stock.StockServiceFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Create By George on /2023/4/10
 * description: 库存Feign服务接口
 *
 * @author George
 */
@FeignClient(name = "bucket-stock",path = "/stock", fallbackFactory = StockServiceFeignFallBack.class)
public interface StockServiceFeign {

    /**
     * 根据订单生成出库单
     *
     * @param orderId
     * @return void
     * @author George
     * @date 2023/4/10 1:14
     */
    @RequestMapping("/outStock/{orderId}")
    String outStock(@PathVariable("orderId") String orderId);
}